package com.frontop.system.modules.sale.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frontop.system.modules.sale.model.SaleQrStatis;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frontop.system.modules.sale.vo.SaleQrStatisVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 二维码扫码统计 Mapper 接口
 * </p>
 *
 * @author YangJia
 * @since 2022-04-24
 */
@Mapper
public interface SaleQrStatisMapper extends BaseMapper<SaleQrStatis> {
    Map<String,Object> getTotalStatics(@Param("param") Map<String,Object> map);
    List<Map<String,Object>> getQr30near(@Param("param") Map<String,Object> map);

    List<Map<String,Object>> getSort(@Param("param") Map<String,Object> map);

    List<Map<String,Object>> getMpsStatis(@Param("param") Map<String,Object> map);

    Page<SaleQrStatis> qrStatisticsPage(Page<SaleQrStatis> page,@Param("param") SaleQrStatisVO vo);
}
